package jgo.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class StringUtils {
    private static final Logger logger = LoggerFactory.getLogger(StringUtils.class);

    public static String capitalize(String str) {
        logger.trace("Capitalizing string: {}", str);
        // 首字母大写的代码
        return str != null && !str.isEmpty() ? Character.toUpperCase(str.charAt(0)) + str.substring(1) : str;
    }

    // 其他方法...
}